import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  { path: '', redirect: '/login' },
  { path: '/login', component: () => import('@/views/Login/index.vue') },
  { path: '/home', component: () => import('@/views/Home/index.vue') },
  { path: '/bim', component: () => import('@/views/Bim/index.vue') },
  { path: '/bim2', component: () => import('@/views/Bim2/index.vue') }
];
const router = createRouter({
  history: createWebHistory(import.meta.env.VITE_APP_BASE_URL),
  routes
});

export default router;
